<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <p title="t">属性选择器</p>
    <p title="te">属性选择器</p>
</body>
<style>
    [title]{
        color: red;
    }

    [title=te]{
        color: blue;
    }
    /* 属性具备te的筛选就更改样式 */
    [title~=te]{
        color: aquamarine;
    }

</style>
</html>